package com.probox.common.entity.service.recharge;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.common.entity.domain.recharge.RechargeRecord;
import com.probox.common.entity.vo.recharge.RechargeRecordVo;

import java.util.List;

/**
 * 储值记录Service接口
 *
 * @author usoft
 * @date 2022-11-02
 */
public interface IRechargeRecordService extends IService<RechargeRecord> {


    /**
     * 储值明细列表
     *
     * @param vo
     * @return
     */
    public List<RechargeRecordVo> getList(RechargeRecordVo vo);

    /**
     * 查询储值记录
     *
     * @param recordId 储值记录ID
     * @return 储值记录
     */
    public RechargeRecord selectRechargeRecordById(Long recordId);

    public RechargeRecord selectRecharge(Long rechargeId,Long customerId);

    /**
     * 查询储值记录列表
     *
     * @param rechargeRecord 储值记录
     * @return 储值记录集合
     */
    public List<RechargeRecord> queryList(RechargeRecord rechargeRecord);

    /**
     * 新增储值记录
     *
     * @param rechargeRecord 储值记录
     * @return 结果
     */
    public boolean insertRechargeRecord(RechargeRecord rechargeRecord);

    /**
     * 修改储值记录
     *
     * @param rechargeRecord 储值记录
     * @return 结果
     */
    public boolean updateRechargeRecord(RechargeRecord rechargeRecord);

    /**
     * 批量删除储值记录
     *
     * @param recordIds 需要删除的储值记录ID
     * @return 结果
     */
    public boolean deleteRechargeRecordByIds(Long[] recordIds);


}
